﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<iss.sg4210.se18.team6s.jass.DAL.Advertisement>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Search - Details</h2>
    <fieldset style="width: 600px">
        <legend>Advertisement Details</legend>
        <table>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Title</div>
                    <div class="display-field">
                        <%: Model.Title %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Description</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.Description %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Experience In Years</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.ExperienceInYears %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Salary From</div>
                    <div class="display-field">
                        <%: Model.SalaryFrom %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Salary To</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.SalaryTo %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Start Date</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td style="white-space: nowrap;">
                    <div class="display-field" style="white-space: nowrap;">
                        <%: String.Format("{0:dd MMMM yyyy}", Model.StartDate) %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        ManagerialSkills
                    </div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%:  Model.ManagerialSkills%></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        TechnicalSkills
                    </div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.TechnicalSkills%>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Location</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.GeoArea.Name %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Company</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.Company.Name %></div>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <div class="display-label">
                        Advertisement Type</div>
                </td>
                <td valign="top">
                    <div class="display-label">
                        :</div>
                </td>
                <td valign="top">
                    <div class="display-field">
                        <%: Model.AdvertisementType.Type %></div>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <p>
                        <%: Html.ActionLink("Apply", "Create", "Response", new { id = Model.Id }, new object { })%>
                        |
                        <%: Html.ActionLink("Back to List", "Search", "Search", new { }, new object { })%>
                    </p>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
